package com.dzl.moive.service;


import com.dzl.moive.pojo.WelfareMovieCinema;
import com.dzl.moive.pojo.query.WelfareMovieCinemaQuery;
import com.dzl.moive.pojo.query.WelfareMovieCinemaWithCodeQuery;
import com.dzl.moive.pojo.vo.WelfareMovieCinemaVo;
import com.dzl.moive.pojo.vo.WelfareMovieTicketVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 电影院(welfare_movie_cinema)服务接口
 * @author liuguanjun
 * @date 2021-11-02 11:12:02
 */
public interface WelfareMovieCinemaService {

    /**
     * 分页查询电影院数据列表
     * @author liuguanjun
     * @date 2021-11-03 10:25:30
     * @param query 查询条件
     **/
    PageInfo<WelfareMovieCinemaVo> getWelfareMovieCinemaVoListPage(WelfareMovieCinemaQuery query);

    /**
     * 查询影片开放购票的影院
     * @author liuguanjun
     * @date 2021-11-03 14:24:30
     * @param query 查询条件
     **/
    List<WelfareMovieCinemaVo> getWelfareMoviePlayCinemaVoList(WelfareMovieCinemaQuery query);

    /**
     * 获取电影院基础信息
     * @param cinemaid 电影院id
     * @author liuguanjun
     * @date 2021-11-06 11:36:50
     **/
    WelfareMovieCinema getMovieCinemaInfo(Integer cinemaid);

    /**
     * 获取电影院详情
     * @param cinemaid 电影院id
     * @param movieid 电影id
     * @param playdate 选择日期
     * @author liuguanjun
     * @date 2021-11-03 15:22:50
     **/
    WelfareMovieCinemaVo getMovieCinemaDetail(Integer cinemaid, Integer movieid, String playdate);

    /**
     * 获取排片详情及排片座位图
     * @param opiid 排片id
     * @author liuguanjun
     * @date 2021-11-03 15:22:50
     **/
    WelfareMovieTicketVo getWelfareMovieTicket(String opiid);

    /**
     * 同步更新影院信息到本地数据库
     * @param pageNo 当前页数
     * @author liuguanjun
     * @date 2021-11-02 16:38:50
     **/
    Integer snycMovieCinema(Integer pageNo);

    /**
     * 分页查询电影院数据列表 - 服务端
     * @author Chenlong
     * @date 2021-11-03 10:25:30
     * @param query 查询条件
     **/
    PageInfo<WelfareMovieCinema> getMovieCinemaListPage(WelfareMovieCinemaWithCodeQuery query);
}
